From: Matthias Clasen Date: Thu, 3 Jul 2008 18:09:04 +0000 (+0000) Subject: Set properties in the order in which they are specified in the xml file. X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~428^2^2~31725 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7d9cf87a0448af05e658064f987455aa3eceb50f;p=gtk4.git Set properties in the order in which they are specified in the xml file. * gtk/gtkbuilderparser.c (parse_custom): Set properties in the order in which they are specified in the xml file. svn path=/trunk/; revision=20749 --- diff --git a/ChangeLog b/ChangeLog index b734a1d485..80289f9999 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-03 Matthias Clasen + + Bug 540915 – GtkBuilder sets properties in reverse order + + * gtk/gtkbuilderparser.c (parse_custom): Set properties in the order + in which they are specified in the xml file. + 2008-07-03 Matthias Clasen Bug 539944 – Add GtkScaleButton API so struct fields can be marked as diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c index 76e79cb3c1..9e073a426d 100644 --- a/gtk/gtkbuilderparser.c +++ b/gtk/gtkbuilderparser.c @@ -713,6 +713,7 @@ parse_custom (GMarkupParseContext *context, ObjectInfo* object_info = (ObjectInfo*)parent_info; if (!object_info->object) { + object_info->properties = g_slist_reverse (object_info->properties); object_info->object = _gtk_builder_construct (data->builder, object_info, error);